<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta http-equiv="pragma" content="no-cache"> 
	    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
	    <meta http-equiv="expires" content="0">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<link rel="stylesheet" href="../css/mui.min.css" />
		<link rel="stylesheet" href="../css/common.css" />
	</head>
	<style type="text/css">
		body {
			background: #F3F3F3;
			width: 100%;
			height: 100%;
		}
		.mui-content {
			width: 100%;
			height: 100%;
			background-color: #F3F3F3;
		    -webkit-overflow-scrolling: touch;
		}
		input[type=text] {
			margin-top: 30px;
			margin-bottom: 0;
			height: 40px; 
			width: 94%; 
			margin-left: 3%;
			border-radius:5px; 
			border-color: #FFFFFF;
			color:#999999;
			font-size: 12px;
			background-color: #FFFFFF;
		}
		::-webkit-input-placeholder{
		     font-size: 12px;
		     font-style: oblique;
		 }
		 .save_btn {
		 	width: 100%;
		 	height: 49px;
		 	position: absolute;
		 	border-radius: 0px;
		 	left: 0px;
		 	bottom: 0px;
		 	background-color: #013662;
		 	color: #FFFFFF;
		 	letter-spacing: 5.04px;
		 }
	</style>
	<body>
		<header style="background-color:#F3F3F3;" class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-pull-left"><img style="width: 10px; margin-top: 12px;" src="../img/common/back_icon.png" /></a>
			<h1 style="color: #444444; font-size: 18px; font-family: "PingFang-SC-Regular";" class="mui-title">商品评论</h1>
		</header>
		<div class="mui-content">
			<input required="" type="text" id="name" placeholder="点击输入姓名"/>
			<button class="save_btn">保存</button>
		</div>
    </div>
	</body>
	<script type="text/javascript" src="../js/thirdparty/mui.min.js" ></script>
	<script type="text/javascript" src="../js/thirdparty/jquery-3.3.1.js" ></script>
	<script type="text/javascript" src="../js/thirdparty/spin.min.js" ></script>
	<script type="text/javascript" src="../js/utils/boot.js" ></script>
	<script type="text/javascript">
		var userID = base.getParameter("userID");
		$(".mui-content").on("tap", ".save_btn", function() {
			base.setWait('正在获取数据...');
			var url = base.url.updatePersonalInfo;
			var data = {
				userID: userID,
				name: $("#name").val()
			}
			base.postData(url,data,updatePersonalInfoData);
		})
		function updatePersonalInfoData() {
			if (data.success) {
				mui.toast(data.msg);
			} else {
				mui.toast(data.msg);
			}
		}
	</script>
</html>
